package com.spring.util.yml;

import java.util.List;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import com.spring.model.User;

import lombok.Data;

@Data
@Component
@ConfigurationProperties(prefix = "own-users")
@PropertySource(name = "custom", value = "classpath:custom.yml", factory = YamlPropertySourceFactory.class)
public class OwnUsers {
	
	private List<User> users;

}
